package gpstools;

import gpstools.math.GeoCalculations;

/**
 * A collection of static methods
 * 
 * @author Marcin Skruch
 */
public class Points {
    private Points() {
        /* non-instantable class */
    }

    public static double distance(Location a, Location b) {
        return GeoCalculations.distance(a.getLatitude(), a.getLongitude(), b.getLatitude(), b.getLongitude());
    }

    public static boolean after(TrainingPoint a, TrainingPoint b) {
        return a.getTime() > b.getTime();
    }
}
